<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/7/13
 * Time: 17:10
 */

use Biz\service\ShopSpecial as sShopSpecial;
use Biz\tools\GoodsExposureLog;
/**
 * @deprecated
 */
class SpecialListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_NOTHING;
    const PAGE_SIZE = 10;

    public function main()
    {

        $page = $this->getRequest()->getQuery('page', 1);
        $page = $page < 1 ? 1 : $page;
        $specianInfo = sShopSpecial::specialList($page, self::PAGE_SIZE);
        $this->setSuccess($specianInfo);
        GoodsExposureLog::addLog($this->getRequest(), $specianInfo);
    }
}